<?php

$file = &$HTTP_POST_FILES['userfile'];//接收表单信息
$dest_dir = 'up';
$dest = $dest_dir.time().$file['name'];

if(!$file){
	echo "<font color='red'>移出文件出错！</font>";
	exit();
}else{
	$r = move_uploaded_file($file['tmp_name'],$dest);
	echo "<font color='red'>恭喜文件".$dest."上传成功</font>";
}


?>